From ca7057e59d578da411e82ca7c19662b54aac384a Mon Sep 17 00:00:00 2001 From: Kevin Albertson Date: Mon, 19 May 2025 20:03:39 -0400 Subject: [PATCH] use `runner.os` To allows future Windows additions to the test matrix. Co-authored-by: Sutou Kouhei --- .github/workflows/cmake.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 7139f6e..db6262e 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -34,7 +34,7 @@ jobs: build/libutf8proc.* build/Debug/utf8proc.* - name: Test Consuming (Windows) - if: ${{ matrix.os == 'windows-latest' }} + if: runner.os = 'Windows' run: | cmake --install build --prefix tmp/install --config Debug cmake -S test/app -B test/app/build -DCMAKE_INSTALL_PREFIX=tmp/install @@ -42,7 +42,7 @@ jobs: $Env:PATH = "$PWD\tmp\install\bin;$Env:PATH" test/app/build/Debug/app.exe - name: Test Consuming (Unix) - if: ${{ matrix.os != 'windows-latest' }} + if: runner.os != 'Windows' run: | cmake --install build --prefix tmp/install cmake -S test/app -B test/app/build -DCMAKE_INSTALL_PREFIX=tmp/install -- 2.30.2